Loading src/network/core/common.py +1 −1 Original line number Diff line number Diff line # -*- coding: utf-8 -*- # Common utilities (errors, HTTP helpers) used by the Open5GS client implementation (client.py). from pydantic import BaseModel import requests from pydantic import BaseModel from src import logger Loading src/network/core/network_interface.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ # # Contributors: # - Reza Mosahebfard (reza.mosahebfard@i2cat.net) # - Ferran Cañellas (ferran.canellas@i2cat.net) ## from abc import ABC, abstractmethod from itertools import product Loading Loading @@ -121,7 +122,7 @@ class NetworkManagementInterface(ABC): ) self.add_core_specific_parameters(subscription) url = f"{self.base_url}/{self.scs_as_id}/subscriptions" common.as_session_with_qos_post(self.base_url, self.scs_as_id, subscription) common.as_session_with_qos_post(url, self.scs_as_id, subscription) def get_qod_session(self, session_id: str) -> Dict: """ Loading src/network/core/schemas.py +3 −3 Original line number Diff line number Diff line Loading @@ -5,11 +5,11 @@ import ipaddress from enum import Enum from ipaddress import IPv4Address, IPv6Address from typing import Annotated from pydantic import AnyUrl, BaseModel, ConfigDict, Field, NonNegativeInt, RootModel from pydantic_extra_types.mac_address import MacAddress from ipaddress import IPv4Address, IPv6Address class FlowDirection(Enum): Loading Loading @@ -147,8 +147,8 @@ class AsSessionWithQoSSubscription(BaseModel): lower the index of the array for a given entry, the higher the priority.", min_items=1, ) ueIpv4Addr: ipaddress.Ipv4Addr | None = None ueIpv6Addr: ipaddress.Ipv6Addr | None = None ueIpv4Addr: ipaddress.IPv4Address | None = None ueIpv6Addr: ipaddress.IPv6Address | None = None macAddr: MacAddress | None = None usageThreshold: UsageThreshold | None = None sponsorInfo: SponsorInformation | None = None Loading Loading
src/network/core/common.py +1 −1 Original line number Diff line number Diff line # -*- coding: utf-8 -*- # Common utilities (errors, HTTP helpers) used by the Open5GS client implementation (client.py). from pydantic import BaseModel import requests from pydantic import BaseModel from src import logger Loading
src/network/core/network_interface.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ # # Contributors: # - Reza Mosahebfard (reza.mosahebfard@i2cat.net) # - Ferran Cañellas (ferran.canellas@i2cat.net) ## from abc import ABC, abstractmethod from itertools import product Loading Loading @@ -121,7 +122,7 @@ class NetworkManagementInterface(ABC): ) self.add_core_specific_parameters(subscription) url = f"{self.base_url}/{self.scs_as_id}/subscriptions" common.as_session_with_qos_post(self.base_url, self.scs_as_id, subscription) common.as_session_with_qos_post(url, self.scs_as_id, subscription) def get_qod_session(self, session_id: str) -> Dict: """ Loading
src/network/core/schemas.py +3 −3 Original line number Diff line number Diff line Loading @@ -5,11 +5,11 @@ import ipaddress from enum import Enum from ipaddress import IPv4Address, IPv6Address from typing import Annotated from pydantic import AnyUrl, BaseModel, ConfigDict, Field, NonNegativeInt, RootModel from pydantic_extra_types.mac_address import MacAddress from ipaddress import IPv4Address, IPv6Address class FlowDirection(Enum): Loading Loading @@ -147,8 +147,8 @@ class AsSessionWithQoSSubscription(BaseModel): lower the index of the array for a given entry, the higher the priority.", min_items=1, ) ueIpv4Addr: ipaddress.Ipv4Addr | None = None ueIpv6Addr: ipaddress.Ipv6Addr | None = None ueIpv4Addr: ipaddress.IPv4Address | None = None ueIpv6Addr: ipaddress.IPv6Address | None = None macAddr: MacAddress | None = None usageThreshold: UsageThreshold | None = None sponsorInfo: SponsorInformation | None = None Loading