Loading src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Service.py +2 −2 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Service.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ from common.proto.context_pb2 import SliceStatusEnum from common.tools.context_queries.Slice import get_slice from context.client.ContextClient import ContextClient from slice.client.SliceClient import SliceClient from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_GATEWAYTIMEOUT, HTTP_NOCONTENT, HTTP_OK, HTTP_SERVERERROR from ..tools.Authentication import HTTP_AUTH from ..tools.HttpStatusCodes import HTTP_GATEWAYTIMEOUT, HTTP_NOCONTENT, HTTP_OK, HTTP_SERVERERROR LOGGER = logging.getLogger(__name__) Loading src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Services.py +3 −3 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Services.py: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ from common.Constants import DEFAULT_CONTEXT_NAME from common.proto.context_pb2 import SliceStatusEnum, Slice from slice.client.SliceClient import SliceClient from .schemas.vpn_service import SCHEMA_VPN_SERVICE from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_CREATED, HTTP_SERVERERROR from .tools.Validator import validate_message from compute.service.rest_server.nbi_plugins.tools.HttpStatusCodes import HTTP_CREATED, HTTP_SERVERERROR from compute.service.rest_server.nbi_plugins.tools.Validator import validate_message from compute.service.rest_server.nbi_plugins.tools.Authentication import HTTP_AUTH LOGGER = logging.getLogger(__name__) Loading src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py +4 −5 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py: 4 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -30,11 +30,10 @@ from common.tools.grpc.Tools import grpc_message_to_json_string from context.client.ContextClient import ContextClient from slice.client.SliceClient import SliceClient from .schemas.site_network_access import SCHEMA_SITE_NETWORK_ACCESS from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_NOCONTENT, HTTP_SERVERERROR from .tools.Validator import validate_message from .Constants import ( BEARER_MAPPINGS, DEFAULT_ADDRESS_FAMILIES, DEFAULT_BGP_AS, DEFAULT_BGP_ROUTE_TARGET, DEFAULT_MTU) from compute.service.rest_server.nbi_plugins.tools.Authentication import HTTP_AUTH from compute.service.rest_server.nbi_plugins.tools.HttpStatusCodes import HTTP_NOCONTENT, HTTP_SERVERERROR from compute.service.rest_server.nbi_plugins.tools.Validator import validate_message from .Constants import BEARER_MAPPINGS, DEFAULT_ADDRESS_FAMILIES, DEFAULT_BGP_AS, DEFAULT_BGP_ROUTE_TARGET, DEFAULT_MTU LOGGER = logging.getLogger(__name__) Loading src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/group/__init__.py 0 → 100644 +96 −0 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/group/__init__.py: 96 added lines, 0 removed lines. Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from typing import Dict, Final, Iterator, List, Tuple from .. import ( YANGChoice, YANGChoiceCase, YANGContainer, YANGContainerMember, YANGLeafMember, YANGListItem, YANGListMember) class GroupMeta(type): """ Metaclass for YANG list item handler. YANG name: group """ class yang_list_descriptor( YANGListMember): """ YANG list descriptor class. YANG name: group """ def __init__(self): super().__init__(Group) def __get__(self, instance, owner=None) -> ( 'GroupMeta.yang_list_descriptor'): return super().__get__(instance, owner) def __call__(self) -> List['Group']: pass def __iter__(self, key) -> Iterator['Group']: return super().__iter__() def __getitem__(self, key) -> 'Group': return super()[key] def __enter__(self) -> ( 'GroupMeta.yang_list_descriptor'): pass class Group( YANGListItem, metaclass=GroupMeta): """ YANG list item handler. YANG name: group """ _yang_name: Final[str] = 'group' _yang_namespace: Final[str] = 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm' _yang_module_name: Final[str] = 'ietf-netconf-acm' _yang_list_key_names: Final[Tuple[str]] = ( 'name', ) _yang_leaf_members: Final[Dict[str, YANGLeafMember]] = { 'name': ( name := YANGLeafMember( 'name', 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm', 'ietf-netconf-acm')), } _yang_container_members: Final[Dict[str, YANGContainerMember]] = { } _yang_list_members: Final[Dict[str, YANGListMember]] = { } _yang_choices: Final[Dict[str, YANGChoice]] = None def __new__(cls, *args, **kwargs) -> 'Group': instance = super().__new__(cls) instance._yang_choices = { } return instance src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/__init__.py 0 → 100644 +86 −0 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/__init__.py: 86 added lines, 0 removed lines. Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from typing import Dict, Final from .. import ( YANGChoice, YANGChoiceCase, YANGContainer, YANGContainerMember, YANGLeafMember, YANGListItem, YANGListMember) class GroupsMeta(type): """ Metaclass for YANG container handler. YANG name: groups """ from .group import Group class yang_container_descriptor( YANGContainerMember): """ YANG container descriptor class. YANG name: groups """ def __init__(self): super().__init__(Groups) def __get__(self, instance, owner=None) -> ( 'GroupsMeta.yang_container_descriptor'): return super().__get__(instance, owner) def __call__(self) -> 'Groups': pass def __enter__(self) -> 'Groups': pass class Groups( YANGContainer, metaclass=GroupsMeta): """ YANG container handler. YANG name: groups """ _yang_name: Final[str] = 'groups' _yang_namespace: Final[str] = 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm' _yang_module_name: Final[str] = 'ietf-netconf-acm' _yang_leaf_members: Final[Dict[str, YANGLeafMember]] = { } _yang_container_members: Final[Dict[str, YANGContainerMember]] = { } _yang_list_members: Final[Dict[str, YANGListMember]] = { 'group': ( group := ( # YANGListMember( GroupsMeta. Group. yang_list_descriptor())), } _yang_choices: Final[Dict[str, YANGChoice]] = None def __new__(cls, *args, **kwargs) -> 'Groups': instance = super().__new__(cls) instance._yang_choices = { } return instance Loading
src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Service.py +2 −2 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Service.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ from common.proto.context_pb2 import SliceStatusEnum from common.tools.context_queries.Slice import get_slice from context.client.ContextClient import ContextClient from slice.client.SliceClient import SliceClient from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_GATEWAYTIMEOUT, HTTP_NOCONTENT, HTTP_OK, HTTP_SERVERERROR from ..tools.Authentication import HTTP_AUTH from ..tools.HttpStatusCodes import HTTP_GATEWAYTIMEOUT, HTTP_NOCONTENT, HTTP_OK, HTTP_SERVERERROR LOGGER = logging.getLogger(__name__) Loading
src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Services.py +3 −3 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_Services.py: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ from common.Constants import DEFAULT_CONTEXT_NAME from common.proto.context_pb2 import SliceStatusEnum, Slice from slice.client.SliceClient import SliceClient from .schemas.vpn_service import SCHEMA_VPN_SERVICE from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_CREATED, HTTP_SERVERERROR from .tools.Validator import validate_message from compute.service.rest_server.nbi_plugins.tools.HttpStatusCodes import HTTP_CREATED, HTTP_SERVERERROR from compute.service.rest_server.nbi_plugins.tools.Validator import validate_message from compute.service.rest_server.nbi_plugins.tools.Authentication import HTTP_AUTH LOGGER = logging.getLogger(__name__) Loading
src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py +4 −5 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py: 4 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -30,11 +30,10 @@ from common.tools.grpc.Tools import grpc_message_to_json_string from context.client.ContextClient import ContextClient from slice.client.SliceClient import SliceClient from .schemas.site_network_access import SCHEMA_SITE_NETWORK_ACCESS from .tools.Authentication import HTTP_AUTH from .tools.HttpStatusCodes import HTTP_NOCONTENT, HTTP_SERVERERROR from .tools.Validator import validate_message from .Constants import ( BEARER_MAPPINGS, DEFAULT_ADDRESS_FAMILIES, DEFAULT_BGP_AS, DEFAULT_BGP_ROUTE_TARGET, DEFAULT_MTU) from compute.service.rest_server.nbi_plugins.tools.Authentication import HTTP_AUTH from compute.service.rest_server.nbi_plugins.tools.HttpStatusCodes import HTTP_NOCONTENT, HTTP_SERVERERROR from compute.service.rest_server.nbi_plugins.tools.Validator import validate_message from .Constants import BEARER_MAPPINGS, DEFAULT_ADDRESS_FAMILIES, DEFAULT_BGP_AS, DEFAULT_BGP_ROUTE_TARGET, DEFAULT_MTU LOGGER = logging.getLogger(__name__) Loading
src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/group/__init__.py 0 → 100644 +96 −0 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/group/__init__.py: 96 added lines, 0 removed lines. Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from typing import Dict, Final, Iterator, List, Tuple from .. import ( YANGChoice, YANGChoiceCase, YANGContainer, YANGContainerMember, YANGLeafMember, YANGListItem, YANGListMember) class GroupMeta(type): """ Metaclass for YANG list item handler. YANG name: group """ class yang_list_descriptor( YANGListMember): """ YANG list descriptor class. YANG name: group """ def __init__(self): super().__init__(Group) def __get__(self, instance, owner=None) -> ( 'GroupMeta.yang_list_descriptor'): return super().__get__(instance, owner) def __call__(self) -> List['Group']: pass def __iter__(self, key) -> Iterator['Group']: return super().__iter__() def __getitem__(self, key) -> 'Group': return super()[key] def __enter__(self) -> ( 'GroupMeta.yang_list_descriptor'): pass class Group( YANGListItem, metaclass=GroupMeta): """ YANG list item handler. YANG name: group """ _yang_name: Final[str] = 'group' _yang_namespace: Final[str] = 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm' _yang_module_name: Final[str] = 'ietf-netconf-acm' _yang_list_key_names: Final[Tuple[str]] = ( 'name', ) _yang_leaf_members: Final[Dict[str, YANGLeafMember]] = { 'name': ( name := YANGLeafMember( 'name', 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm', 'ietf-netconf-acm')), } _yang_container_members: Final[Dict[str, YANGContainerMember]] = { } _yang_list_members: Final[Dict[str, YANGListMember]] = { } _yang_choices: Final[Dict[str, YANGChoice]] = None def __new__(cls, *args, **kwargs) -> 'Group': instance = super().__new__(cls) instance._yang_choices = { } return instance
src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/__init__.py 0 → 100644 +86 −0 Viewed Changes for src/compute/service/rest_server/nbi_plugins/ietf_network_slice/bindings/nacm/groups/__init__.py: 86 added lines, 0 removed lines. Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from typing import Dict, Final from .. import ( YANGChoice, YANGChoiceCase, YANGContainer, YANGContainerMember, YANGLeafMember, YANGListItem, YANGListMember) class GroupsMeta(type): """ Metaclass for YANG container handler. YANG name: groups """ from .group import Group class yang_container_descriptor( YANGContainerMember): """ YANG container descriptor class. YANG name: groups """ def __init__(self): super().__init__(Groups) def __get__(self, instance, owner=None) -> ( 'GroupsMeta.yang_container_descriptor'): return super().__get__(instance, owner) def __call__(self) -> 'Groups': pass def __enter__(self) -> 'Groups': pass class Groups( YANGContainer, metaclass=GroupsMeta): """ YANG container handler. YANG name: groups """ _yang_name: Final[str] = 'groups' _yang_namespace: Final[str] = 'urn:ietf:params:xml:ns:yang:ietf-netconf-acm' _yang_module_name: Final[str] = 'ietf-netconf-acm' _yang_leaf_members: Final[Dict[str, YANGLeafMember]] = { } _yang_container_members: Final[Dict[str, YANGContainerMember]] = { } _yang_list_members: Final[Dict[str, YANGListMember]] = { 'group': ( group := ( # YANGListMember( GroupsMeta. Group. yang_list_descriptor())), } _yang_choices: Final[Dict[str, YANGChoice]] = None def __new__(cls, *args, **kwargs) -> 'Groups': instance = super().__new__(cls) instance._yang_choices = { } return instance