Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
eefc016a
Commit
eefc016a
authored
4 months ago
by
Shayan Hajipour
Browse files
Options
Downloads
Patches
Plain Diff
debug: match criteria extraction in slice creation fixed
parent
d7c5d0d0
No related branches found
No related tags found
3 merge requests
!346
Draft: support for restconf protocol
,
!345
Draft: support ipinfusion devices via netconf
,
!306
Resolve "(CTTC) L3NM-NCE Service Handler is Required"
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/service/service/service_handlers/l3nm_nce/L3NMNCEServiceHandler.py
+4
-4
4 additions, 4 deletions
...ervice/service_handlers/l3nm_nce/L3NMNCEServiceHandler.py
with
4 additions
and
4 deletions
src/service/service/service_handlers/l3nm_nce/L3NMNCEServiceHandler.py
+
4
−
4
View file @
eefc016a
...
...
@@ -171,7 +171,6 @@ class L3NMNCEServiceHandler(_ServiceHandler):
endpoints
:
List
[
Tuple
[
str
,
str
,
Optional
[
str
]]],
connection_uuid
:
Optional
[
str
]
=
None
,
)
->
List
[
Union
[
bool
,
Exception
]]:
LOGGER
.
debug
(
f
"
P3:
{
len
(
endpoints
)
}
{
endpoints
}
"
)
chk_type
(
"
endpoints
"
,
endpoints
,
list
)
if
len
(
endpoints
)
==
0
:
return
[]
...
...
@@ -207,7 +206,6 @@ class L3NMNCEServiceHandler(_ServiceHandler):
service_name
=
running_resource_value_dict
[
"
network-slice-services
"
][
"
slice-service
"
][
0
][
"
id
"
]
LOGGER
.
debug
(
f
"
P1:
{
service_name
}
"
)
if
not
running_candidate_diff
:
# Slice Creation
operation_type
=
"
create
"
slice_services
=
candidate_resource_value_dict
[
...
...
@@ -328,7 +326,9 @@ class L3NMNCEServiceHandler(_ServiceHandler):
raise
Exception
(
"
connection group missmatch in destination sdp and added connection group
"
)
match_criteria
=
removed_sdp
[
"
service-match-criteria
"
][
"
match-criterion
"
]
match_criteria
=
removed_sdp
[
"
service-match-criteria
"
][
"
match-criterion
"
]
match_criterion
=
match_criteria
[
0
]
for
type_value
in
match_criterion
[
"
match-type
"
]:
if
type_value
[
"
type
"
]
==
"
ietf-network-slice-service:source-ip-prefix
"
:
...
...
@@ -414,7 +414,7 @@ class L3NMNCEServiceHandler(_ServiceHandler):
self
.
__task_executor
.
configure_device
(
controller
)
LOGGER
.
debug
(
'
Configured device
"
{:s}
"'
.
format
(
controller
.
name
))
except
Exception
as
e
:
# pylint: disable=broad-except
LOGGER
.
exception
(
f
'
P4:
{
e
}
'
)
LOGGER
.
exception
(
f
"
P4:
{
e
}
"
)
raise
e
results
.
append
(
e
)
return
results
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment